<?php

class XMLDataParser extends DataParser {

    public function parseData($data) {

        $xml = simplexml_load_string($data);
        $json = json_encode($xml);
        $array = json_decode($json, TRUE);
        $this->setTotalItems(count($array['row']));
        return $array['row'];
    }
}
